package cn.uniquesoft.service.impl;

import cn.uniquesoft.mapper.ArticleMapper;
import cn.uniquesoft.service.IArticleService;
import cn.uniquesoft.service.base.BaseServiceImpl;
import cn.uniquesoft.vo.ArticleVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl extends BaseServiceImpl<ArticleVO> implements IArticleService {
    private ArticleMapper articleMapper;

    public ArticleServiceImpl(ArticleMapper articleMapper) {
        super();
        this.baseMapper = articleMapper;
        this.articleMapper = articleMapper;
    }

    @Override
    public List<ArticleVO> findListDown(ArticleVO item) {
        return this.articleMapper.findListDown(item);
    }

    @Override
    public List<ArticleVO> findListUp(ArticleVO item) {
        return this.articleMapper.findListUp(item);
    }

    @Override
    public List<ArticleVO> appDtxx() {
        return this.articleMapper.appDtxx();
    }

    @Override
    public List<ArticleVO> getItemsFirst(ArticleVO item) {
        return this.articleMapper.getItemsFirst(item);
    }

    @Override
    public List<ArticleVO> getGroup() {
        return this.articleMapper.getGroup();
    }

    @Override
    public int updateUrl(ArticleVO articleVO) {
        return this.articleMapper.updateUrl(articleVO);
    }

    @Override
    public ArticleVO getFirstItemChecked(int articletypeiid) {
        ArticleVO articleVO = new ArticleVO();
        articleVO.setArticletypeiid(articletypeiid);
        return this.articleMapper.getFirstItemChecked(articleVO);
    }

    @Override
    public int shnehe(ArticleVO item) {
        return this.articleMapper.shnehe(item);
    }
}
